<template>
    <div>
        <el-container>
        <el-header>
            <img class="mlogo" src="http://www.abchina.com/cn/images/logo_ue2.png" alt="">
        </el-header>
        <el-main>
            <el-form ref="form" :model="form" label-width="80px">
                <el-form-item label="用户名">
                    <el-input v-model="form.username" prop="username"></el-input>
                </el-form-item>

                <el-form-item label="密码">
                    <el-input type="password" v-model="form.password" prop="password"></el-input>
                </el-form-item>
    
                <el-form-item>
                    <el-button type="primary" @click="onSubmit('form')">登录</el-button>
                </el-form-item>
            </el-form>

        </el-main>
</el-container>
    </div>

</template>


<script>
    export default {
        name: "Login",
        data() {
            return {
                form: {
                username: '',
                password: ''
                }
            }
        },
        methods: {
            onSubmit() {
                console.log('submit!');
            }
        }
    }
</script>

<style scoped>
    .el-header, .el-footer {
        /* background-color: #B3C0D1; */
        color: #333;
        text-align: center;
        line-height: 60px;
    }
    
    .el-aside {
        background-color: #D3DCE6;
        color: #333;
        text-align: center;
        line-height: 200px;
    }
    
    .el-main {
        /* background-color: #E9EEF3; */
        color: #333;
        text-align: center;
        line-height: 160px;
    }
    
    body > .el-container {
        margin-bottom: 40px;
    }

    .mlogo {
        height: 60%;
        margin-top: 10px;
    }

</style>